<?php
use \sy\lib\YHtml;
?>
<!DOCTYPE html>
<html>
<head>
	<title>登录</title>
	<?=Sy::view('common/header_loginPage')?>
</head>
<body>
	<h1>登录</h1>
	<iframe src="<?=Sy::createUrl(['user/login', 'callback' => 'loginCallback'])?>"></iframe>
	<script>
	window.eu = {
		"redirect": decodeURIComponent('<?=urlencode($redirect)?>')
	};
	window.loginCallback = function() {
		window.location.href = window.eu.redirect;
	};
	</script>
</body>
</html>